import {get,post,put,del} from '@/utils/request/axios';

/**
 * 分页查询服务器信息
 * @param obj
 * @returns {*}
 */
export const listPage = (obj) => {
  const url = "/leader/serversBaseInfo/listPage";
  return get(url,obj);
};

/**
 * 新增服务器
 * @param obj
 * @returns {*}
 */
export const addServer = (obj) => {
  const url = "/leader/serversBaseInfo";
  return post(url, obj);
};

/**
 * 修改服务器
 * @param id
 * @param obj
 * @returns {*}
 */
export const updateServer = (id,obj) => {
  const url = "/leader/serversBaseInfo/" + id;
  return put(url, obj);
};

/**
 * 删除服务器
 * @param id
 * @returns {*}
 */
export const deleteServer = (id) => {
  const url = "/leader/serversBaseInfo/" + id;
  return del(url);
};
